import request from '@/utils/request'//引入ajax
const api_name = '/admin/system'
// 查询状态
export const findOption = () => {
    return request({
        url: `${api_name}/findOption`,
        method: 'get'
    })
}
export const DeleteOption = (id) => {
    return request({
        url: `${api_name}/DelOptionById/${id}`,
        method: 'delete'
    })
}

//查询所有饮食管理数据 
export const findDietmanageAll = () => {
    return request({
        url: `${api_name}/findDietmanageAll`,
        method: 'get'
    })
}
//添加饮食方案 
export const addOptionAndDiet = (DietOptionIds) => {
    return request({
        url: `${api_name}/addOptionAndDiet`,
        method: 'post',
        data:DietOptionIds
    })
}